package com.zc.study.thread.多线程第一章节.多线程1_1_3;

/**
 * 线程安全
 */
public class MyTtread2 extends Thread {
    private int a = 5;
    @Override
   synchronized public void run(){
        a--;
        System.out.println("you"+currentThread().getName()+"来进行减法运算,结果为"+a );
    }
}
